<template>
  <div>
    <MyHeader title="tabber案例"></MyHeader>
    <div class="box">
      <component :is="comName"></component>
    </div>
    <MyTabBar :arr="tabList"></MyTabBar>
  </div>
</template>

<script>
import MyHeader from "./components/MyHeader";
import MyTabBar from "./components/MyTabBar";
import MyGoodsList from "./components/views/MyGoodsList";
import MyGoodsSearch from "./components/views/MyGoodsSearch";
import MyUserInfo from "./components/views/MyUserInfo";
export default {
  data() {
    return {
      comName: "MyGoodsList",
      tabList: [
        {
          iconText: "icon-shangpinliebiao",
          text: "商品列表",
          componentName: "MyGoodsList",
        },
        {
          iconText: "icon-sousuo",
          text: "商品搜索",
          componentName: "MyGoodsSearch",
        },
        {
          iconText: "icon-user",
          text: "我的信息",
          componentName: "MyUserInfo",
        },
      ],
    };
  },
  components: {
    MyHeader,
    MyTabBar,
    MyGoodsList,
    MyGoodsSearch,
    MyUserInfo,
  },
};
</script>

<style>
.box {
  padding-top: 45px;
  padding-bottom: 51px;
}
</style>